package jee.boot.module.authority.service;

import jee.boot.common.basic.CrudService;
import jee.boot.common.standard.AuthorityHandler;
import jee.boot.module.authority.dao.ColumnDao;
import jee.boot.entity.auth.Column;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Caching;
import org.springframework.stereotype.Service;
/**
 * 列
 */
@Service
public class ColumnService extends CrudService<ColumnDao, Column> {
    @Caching(evict = {
            @CacheEvict(value = AuthorityHandler.USER_AUTHORITY_KEY, allEntries = true)
    })
    @Override
    public void update(Column entity) {
        super.update(entity);
    }
    @Caching(evict = {
            @CacheEvict(value = AuthorityHandler.USER_AUTHORITY_KEY, allEntries = true)
    })
    @Override
    public void delete(Column entity) {
        super.delete(entity);
    }
}
